from datetime import datetime

from django.shortcuts import render

# Create your views here.
from django.shortcuts import render


def Index(request):
    context={'city':'北京',
                 'adict':{
                     'name':'西游记',
                     'author':'吴承恩'
                 },
                    'alist':[1,2,3,4,5],
                    'children':{
                        'name':'xiaoming',
                        'age':6
                    },
                    'html':'<span style="color:blue">蓝色字体</span>',
                    'date':datetime.now()

             }
    return render(request,'index.html',context)

def extend_view(request):
    return render(request, 'child.html')

